import 'dart:ui';

import 'package:flutter/cupertino.dart';

class LocationsUtils {
  final Locale locale;

  const LocationsUtils({required this.locale});

  static LocationsUtils of(BuildContext context){
    return Localizations.of(context, LocationsUtils);
  }

  static Map<String, Map<String, String>> locationsValue = {
    "en": {'home': 'home', 'my': 'my', 'hot': 'hot', 'all': 'all'},
    "zh": {'home': '首页', 'my': '我的', 'hot': '热门', 'all': '全部'},
  };

  String get home {
    return locationsValue[locale.languageCode]?['home']??'';
  }
}
